home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / DRIVER.CAB / sml4600.gpd < prev    next >
Encoding:
Text File  |  2003-02-21  |  44.3 KB  |  1,575 lines

  1. *%%
  2. *%% Samsung ML-4600 PCL6
  3. *%%
  4. *%% Copyright 1998 - 1999, Microsoft Corp.
  5. *%% All Rights Reserved.
  6. *%%
  7.  
  8. *%%
  9. *%% Global Entries
  10. *%%
  11. *GPDSpecVersion: "1.0"
  12. *GPDFileVersion: "1.0"
  13.  
  14. *%%% ======================
  15. *%%% Include standard GPD files
  16. *%%% =====================
  17. *Include: "StdNames.gpd"
  18. *Include: "ttfsub.gpd"
  19.  
  20. *%%
  21. *%% Model Specific Global Entries
  22. *%%
  23. *GPDFileName: "sml4600.gpd"
  24. *ModelName:   "Samsung ML-4600 PCL6"
  25. *MaxCopies: 32767
  26. *PrintRate: 10
  27. *PrintRatePPM: 10
  28. *PrintRateUnit: PPM
  29. *%%% ======================
  30. *%%% Macros
  31. *%%% ======================
  32. *Include: "pjl.gpd"
  33. *Include: "p6font.gpd"
  34. *Include: "p6disp.gpd"
  35.  
  36. *%%% ======================
  37. *%%% Main
  38. *%%% ======================
  39. *Include: "pclxl.gpd"
  40.  
  41. *%%% ======================
  42. *%%% JOB_SETUP, PAGE_FINISH
  43. *%%% , JOB_FINISH
  44. *%%% ======================
  45. *Macros: PCLXLCommand
  46. {
  47. *%%% ---------------------------------------------------------------------------
  48. *%%% PCL XL Stream Header
  49. *%%% ---------------------------------------------------------------------------
  50. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  51. +                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  52.  
  53. *%%% ---------------------------------------------------------------------------
  54. *%%% BeginSession
  55. *%%%     Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  56. *%%% ---------------------------------------------------------------------------
  57. PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  58. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  59.  
  60. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  61. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  62.  
  63. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  64. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  65.  
  66. Width: %m{ RasterDataWidthInBytes }
  67. Height: %m{ RasterDataHeightInPixels }
  68. DataSize: %l{ NumOfDataBytes }
  69. FntHeight: %l{ FontHeight*600/TextYRes }
  70. FntNextGlyph: %l{ NextGlyph }
  71.  
  72. *%%% ---------------------------------------------------------------------------
  73. *%%% BeginRaster
  74. *%%%     ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  75. *%%%     SourceWidth(uint16) & SourceHeight(uint16)
  76. *%%% ---------------------------------------------------------------------------
  77. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  78. +                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  79. +                     =uint16 =Width =attr_ubyte =SourceWidth
  80. +                     =uint16 =Height =attr_ubyte =SourceHeight
  81. +                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  82. +                     =BeginImage
  83. +                     =ubyte =eNoCompression =attr_ubyte =CompressMode
  84. +                     =ubyte "<00>" =attr_ubyte =StartLine
  85. +                     =uint16 =Height =attr_ubyte =BlockHeight
  86. +                     =ReadImage
  87.  
  88. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  89.  
  90. DestinationX: %l{DestX}
  91. DestinationY: %l{DestY}
  92. DestinationXRel: %l{DestYRel}
  93. DestinationYRel: %l{DestXRel}
  94. NumOfCopy: %l{NumOfCopies}
  95. PrintDir: %l{PrintDirInCCDegrees}
  96. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  97. }
  98.  
  99. *%%% ======================
  100. *%%% Features and Options
  101. *%%% ======================
  102.  
  103. *%% Orientation
  104. *Feature: Orientation
  105. {
  106.     *rcNameID: =ORIENTATION_DISPLAY
  107.     *DefaultOption: PORTRAIT
  108.     *Option: PORTRAIT
  109.     {
  110.         *rcNameID: =PORTRAIT_DISPLAY
  111.     }
  112.     *Option: LANDSCAPE_CC90
  113.     {
  114.         *rcNameID: =LANDSCAPE_DISPLAY
  115.     }
  116. }
  117.  
  118. *%%% ======================
  119. *%%% JOB_SETUP
  120. *%%% ======================
  121.  
  122. *%%% ======================
  123. *%%% JOB_SETUP.1
  124. *%%% START PLJ JOB
  125. *%%% PAGEPROTECT
  126. *%%% TIMEOUT
  127. *Feature: PageProtect
  128. {
  129.     *rcNameID: =PAGE_PROTECTION_DISPLAY
  130.     *DefaultOption: OFF
  131.     *Option: ON
  132.     {
  133.         *rcNameID: =ON_DISPLAY
  134.         *Command: CmdSelect
  135.         {
  136.             *Order: JOB_SETUP.1
  137.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  138.         }
  139.     }
  140.     *Option: OFF
  141.     {
  142.         *rcNameID: =OFF_DISPLAY
  143.         *Command: CmdSelect
  144.         {
  145.             *Order: JOB_SETUP.1
  146.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  147.         }
  148.     }
  149. }
  150. *%%% ======================
  151. *%%% JOB_SETUP.2
  152. *%%% ECONOMODE
  153. *Feature: Economode
  154. {
  155.     *rcNameID: =ECONOMODE_DISPLAY
  156.     *DefaultOption: Option1
  157.     *Option: Option1
  158.     {
  159.         *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  160.     }
  161.     *Option: Option2
  162.     {
  163.         *rcNameID: =ECONOMODE_OFF_DISPLAY
  164.         *Command: CmdSelect
  165.         {
  166.             *Order: JOB_SETUP.2
  167.             *Cmd: =PJL_ECONOMODE_OFF
  168.         }
  169.     }
  170.     *Option: Option3
  171.     {
  172.         *rcNameID: =ECONOMODE_ON_DISPLAY
  173.         *Command: CmdSelect
  174.         {
  175.             *Order: JOB_SETUP.2
  176.             *Cmd: =PJL_ECONOMODE_ON
  177.         }
  178.     }
  179. }
  180.  
  181. *%%% ======================
  182. *%%% JOB_SETUP.3
  183. *%%% RET
  184. *Feature: RET
  185. {
  186.     *rcNameID: =PRINT_QUALITY
  187.     *DefaultOption: Option1
  188.     *Option: Option1
  189.     {
  190.         *rcNameID: =PRINT_QUALITY_DEFAULT
  191.     }
  192.     *Option: Option2
  193.     {
  194.         *rcNameID: =PRINT_QUALITY_LIGHT
  195.         *Command: CmdSelect
  196.         {
  197.             *Order: JOB_SETUP.3
  198.             *Cmd: =PJL_RET_LIGHT
  199.         }
  200.     }
  201.     *Option: Option3
  202.     {
  203.         *rcNameID: =PRINT_QUALITY_MEDIUM
  204.         *Command: CmdSelect
  205.         {
  206.             *Order: JOB_SETUP.3
  207.             *Cmd: =PJL_RET_MEDIUM
  208.         }
  209.     }
  210.     *Option: Option4
  211.     {
  212.         *rcNameID: =PRINT_QUALITY_DARK
  213.         *Command: CmdSelect
  214.         {
  215.             *Order: JOB_SETUP.3
  216.             *Cmd: =PJL_RET_DARK
  217.         }
  218.     }
  219.     *Option: Option5
  220.     {
  221.         *rcNameID: =PRINT_QUALITY_OFF
  222.         *Command: CmdSelect
  223.         {
  224.             *Order: JOB_SETUP.3
  225.             *Cmd: =PJL_RET_OFF
  226.         }
  227.     }
  228. }
  229.  
  230. *%%% ======================
  231. *%%% JOB_SETUP.4
  232. *%%% Collate
  233. *Feature: Collate
  234. {
  235.     *rcNameID: =COLLATOR_DISPLAY *% this shouldn't appear...
  236.  
  237.     *DefaultOption: OFF
  238.     *Option: ON
  239.     {
  240.         *rcNameID: =ON_DISPLAY
  241.        *switch: PrinterHardDisk
  242.         {
  243.            *case: FALSE
  244.      {
  245.  
  246.        *Switch:  Memory  *% need 16MB to collate w/o harddisk
  247.         {
  248.               *Case: 4MB
  249.                  {
  250.              *Command: CmdSelect
  251.                             {
  252.                               *Order: JOB_SETUP.4
  253.                               *Cmd: =PJL_COLLATE_OFF
  254.                              }
  255.            }
  256.                            *Case: 8MB
  257.            {
  258.                  *Command: CmdSelect
  259.                            {
  260.                               *Order: JOB_SETUP.4
  261.                               *Cmd: =PJL_COLLATE_OFF
  262.                           }
  263.                        }
  264.                           *Case: 12MB
  265.            {
  266.                  *Command: CmdSelect
  267.                            {
  268.                               *Order: JOB_SETUP.4
  269.                               *Cmd: =PJL_COLLATE_OFF
  270.                           }
  271.                        }
  272.         *default
  273.            {
  274.                  *Command: CmdSelect
  275.                            {
  276.                               *Order: JOB_SETUP.4
  277.                               *Cmd: =PJL_COLLATE_ON
  278.                           }
  279.                        }
  280.          }
  281.              }
  282.             *case: TRUE
  283.             {
  284.                 *Command: CmdSelect
  285.                 {
  286.                     *Order: JOB_SETUP.4
  287.                     *Cmd: =PJL_COLLATE_ON
  288.                 }
  289.             }
  290.         }
  291.     }
  292.     *Option: OFF
  293.     {
  294.         *rcNameID:=OFF_DISPLAY
  295.         *Command: CmdSelect
  296.         {
  297.             *Order: JOB_SETUP.4
  298.             *Cmd: =PJL_COLLATE_OFF
  299.         }
  300.     }
  301. }
  302.  
  303. *Feature: JobRetention
  304. {
  305.     *rcNameID: =JOB_RETENTION_DISPLAY *% Job Retention
  306.     *DefaultOption: Option1
  307.     *Option: Option1
  308.     {
  309.         *rcNameID: =OFF_DISPLAY
  310.         *Command: CmdSelect
  311.         {
  312.             *Order: JOB_SETUP.3
  313.             *Cmd: "@PJL SET HOLD=OFF<0A>"
  314.         }
  315.     }
  316.     *Option: Option2
  317.     {
  318.         *rcNameID: =QUICK_COPY_DISPLAY
  319.         *Command: CmdSelect
  320.         {
  321.             *Order: JOB_SETUP.3
  322.             *Cmd: "@PJL SET HOLD=ON<0A>"
  323.         }
  324.     }
  325.     *Option: Option3
  326.     {
  327.         *rcNameID: =PROOF_HOLD_DISPLAY
  328.         *Command: CmdSelect
  329.         {
  330.            *Order: JOB_SETUP.3
  331.             *Cmd: "@PJL SET HOLD=PROOF<0A>"
  332.         }
  333.     }
  334.     *Option: Option4
  335.     {
  336.         *rcNameID: =STORE_JOB_DISPLAY
  337.         *Command: CmdSelect
  338.         {
  339.             *Order: JOB_SETUP.3
  340.             *Cmd: "@PJL SET HOLD=STORE<0A>"
  341.          }
  342.       }
  343. }
  344.  
  345. *Feature: JobRetentionUserID
  346. {
  347.     *rcNameID: =JOB_RETENTION_USERID_DISPLAY *%"Job Retention User ID"
  348.     *DefaultOption: Option1
  349.     *Option: Option1
  350.     {
  351.         *Name: "1"
  352.         *Command: CmdSelect
  353.         {
  354.             *Order: JOB_SETUP.3
  355.             *Cmd: "@PJL SET USERNAME=<22>1<22><0A>"
  356.         }
  357.     }
  358.     *Option: Option2
  359.     {
  360.         *Name: "2"
  361.         *Command: CmdSelect
  362.         {
  363.             *Order: JOB_SETUP.3
  364.             *Cmd: "@PJL SET USERNAME=<22>2<22><0A>"
  365.         }
  366.     }
  367.     *Option: Option3
  368.     {
  369.         *Name: "3"
  370.         *Command: CmdSelect
  371.         {
  372.             *Order: JOB_SETUP.3
  373.             *Cmd: "@PJL SET USERNAME=<22>3<22><0A>"
  374.         }
  375.     }
  376.     *Option: Option4
  377.     {
  378.         *Name: "4"
  379.         *Command: CmdSelect
  380.         {
  381.             *Order: JOB_SETUP.3
  382.             *Cmd: "@PJL SET USERNAME=<22>4<22><0A>"
  383.         }
  384.     }
  385.     *Option: Option5
  386.     {
  387.         *Name: "5"
  388.         *Command: CmdSelect
  389.         {
  390.             *Order: JOB_SETUP.3
  391.             *Cmd: "@PJL SET USERNAME=<22>5<22><0A>"
  392.         }
  393.     }
  394.     *Option: Option6
  395.     {
  396.         *Name: "6"
  397.         *Command: CmdSelect
  398.         {
  399.             *Order: JOB_SETUP.3
  400.             *Cmd: "@PJL SET USERNAME=<22>6<22><0A>"
  401.         }
  402.     }
  403.     *Option: Option7
  404.     {
  405.         *Name: "7"
  406.         *Command: CmdSelect
  407.         {
  408.             *Order: JOB_SETUP.3
  409.             *Cmd: "@PJL SET USERNAME=<22>7<22><0A>"
  410.         }
  411.     }
  412.     *Option: Option8
  413.     {
  414.         *Name: "8"
  415.         *Command: CmdSelect
  416.         {
  417.             *Order: JOB_SETUP.3
  418.             *Cmd: "@PJL SET USERNAME=<22>8<22><0A>"
  419.         }
  420.     }
  421.     *Option: Option9
  422.     {
  423.         *Name: "9"
  424.         *Command: CmdSelect
  425.         {
  426.             *Order: JOB_SETUP.3
  427.             *Cmd: "@PJL SET USERNAME=<22>9<22><0A>"
  428.         }
  429.     }
  430.     *Option: Option10
  431.     {
  432.         *Name: "10"
  433.         *Command: CmdSelect
  434.         {
  435.             *Order: JOB_SETUP.3
  436.             *Cmd: "@PJL SET USERNAME=<22>10<22><0A>"
  437.         }
  438.     }
  439.     *Option: Option11
  440.     {
  441.         *Name: "11"
  442.         *Command: CmdSelect
  443.         {
  444.             *Order: JOB_SETUP.3
  445.             *Cmd: "@PJL SET USERNAME=<22>11<22><0A>"
  446.         }
  447.     }
  448.     *Option: Option12
  449.     {
  450.         *Name: "12"
  451.         *Command: CmdSelect
  452.         {
  453.             *Order: JOB_SETUP.3
  454.             *Cmd: "@PJL SET USERNAME=<22>12<22><0A>"
  455.         }
  456.     }
  457.     *Option: Option13
  458.     {
  459.         *Name: "13"
  460.         *Command: CmdSelect
  461.         {
  462.             *Order: JOB_SETUP.3
  463.             *Cmd: "@PJL SET USERNAME=<22>13<22><0A>"
  464.         }
  465.     }
  466.     *Option: Option14
  467.     {
  468.         *Name: "14"
  469.         *Command: CmdSelect
  470.         {
  471.             *Order: JOB_SETUP.3
  472.             *Cmd: "@PJL SET USERNAME=<22>14<22><0A>"
  473.         }
  474.     }
  475.     *Option: Option15
  476.     {
  477.         *Name: "15"
  478.         *Command: CmdSelect
  479.         {
  480.             *Order: JOB_SETUP.3
  481.             *Cmd: "@PJL SET USERNAME=<22>15<22><0A>"
  482.         }
  483.     }
  484.     *Option: Option16
  485.     {
  486.         *Name: "16"
  487.         *Command: CmdSelect
  488.         {
  489.             *Order: JOB_SETUP.3
  490.             *Cmd: "@PJL SET USERNAME=<22>16<22><0A>"
  491.         }
  492.     }
  493.     *Option: Option17
  494.     {
  495.         *Name: "17"
  496.         *Command: CmdSelect
  497.         {
  498.             *Order: JOB_SETUP.3
  499.             *Cmd: "@PJL SET USERNAME=<22>17<22><0A>"
  500.         }
  501.     }
  502.     *Option: Option18
  503.     {
  504.         *Name: "18"
  505.         *Command: CmdSelect
  506.         {
  507.             *Order: JOB_SETUP.3
  508.             *Cmd: "@PJL SET USERNAME=<22>18<22><0A>"
  509.         }
  510.     }
  511.     *Option: Option19
  512.     {
  513.         *Name: "19"
  514.         *Command: CmdSelect
  515.         {
  516.             *Order: JOB_SETUP.3
  517.             *Cmd: "@PJL SET USERNAME=<22>19<22><0A>"
  518.         }
  519.     }
  520.     *Option: Option20
  521.     {
  522.         *Name: "20"
  523.         *Command: CmdSelect
  524.         {
  525.             *Order: JOB_SETUP.3
  526.             *Cmd: "@PJL SET USERNAME=<22>20<22><0A>"
  527.         }
  528.     }
  529. }
  530.  
  531. *% constrain all but option 1 when no hard disk installed
  532. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetention.Option2)
  533. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetention.Option3)
  534. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetention.Option4)
  535.  
  536. *% constrain all but option 1 when no hard disk installed
  537. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option2)
  538. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option3)
  539. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option4)
  540. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option5)
  541. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option6)
  542. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option7)
  543. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option8)
  544. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option9)
  545. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option10)
  546. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option11)
  547. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option12)
  548. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option13)
  549. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option14)
  550. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option15)
  551. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option16)
  552. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option17)
  553. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option18)
  554. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option19)
  555. *InvalidCombination: LIST(PrinterHardDisk.FALSE,JobRetentionUserID.Option20)
  556.  
  557. *%%% ======================
  558. *%%% JOB_SETUP.5
  559. *%%%     RESOLUTION
  560. *%%%     ENTER LANGUAGE=PCLXL
  561. *%%%     PCL XL Stream Header
  562. *%%%     BeginSession
  563. *%%% CmdEndRaster
  564. *%%%     EndImage
  565. *%%% CmdSendBlockData
  566. *%%%     EndImage
  567. *Feature: Resolution
  568. {
  569.     *rcNameID: =RESOLUTION_DISPLAY
  570.     *DefaultOption: Option1
  571.  
  572.     *Option: Option1
  573.     {
  574.         *Name: "600 x 600 " =DOTS_PER_INCH
  575.         *DPI: PAIR(600, 600)
  576.         *TextDPI: PAIR(600, 600)
  577.         *MinStripBlankPixels: 32
  578.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  579.         *SpotDiameter: 100
  580.         *Command: CmdBeginRaster
  581.         {
  582.             *Cmd : =PCLXL_CmdBeginRaster
  583.         }
  584.  
  585.         *Command: CmdEndRaster { *Cmd : =EndImage }
  586.         *Command: CmdSendBlockData
  587.         {
  588.             *Cmd: =PCLXL_CmdSendBlockData
  589.         }
  590.  
  591.         *Command: CmdSelect
  592.         {
  593.             *Order: JOB_SETUP.5
  594.             *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
  595.         }
  596.     }
  597.     *Option: Option2
  598.     {
  599.         *Name: "300 x 300 " =DOTS_PER_INCH
  600.         *DPI: PAIR(300, 300)
  601.         *TextDPI: PAIR(300, 300)
  602.         *MinStripBlankPixels: 32
  603.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  604.         *SpotDiameter: 100
  605.         *Command: CmdBeginRaster
  606.         {
  607.             *Cmd : =PCLXL_CmdBeginRaster
  608.         }
  609.  
  610.         *Command: CmdEndRaster { *Cmd : =EndImage }
  611.         *Command: CmdSendBlockData
  612.         {
  613.             *Cmd: =PCLXL_CmdSendBlockData
  614.         }
  615.  
  616.         *Command: CmdSelect
  617.         {
  618.             *Order: JOB_SETUP.5
  619.             *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300
  620.         }
  621.     }
  622. }
  623.  
  624. *%%% ======================
  625. *%%% JOB_SETUP.6
  626. *%%% OpenDataSource(0x48)
  627. *%%%     SourceType(ubyte) & DataOrg(ubyte)
  628. *%%%     136(0x88)           130(0x82)
  629. *Command: CmdStartDoc
  630. {
  631.     *Order: JOB_SETUP.6
  632.     *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  633. }
  634.  
  635. *%%% ======================
  636. *%%% PAGE_FINISH
  637. *%%% ======================
  638.  
  639. *%%% ======================
  640. *%%% PAGE_FINISH.3
  641. *Command: CmdEndPage
  642. {
  643.     *Order: PAGE_FINISH.1
  644.     *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  645. }
  646.  
  647. *%%% ======================
  648. *%%% JOB_FINISH.1
  649. *%%% CmdEndJob
  650. *Command: CmdEndJob
  651. {
  652.     *Order: JOB_FINISH.1
  653.     *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  654. }
  655.  
  656. *%%% ======================
  657. *%%% PAGE_SETUP
  658. *%%% ======================
  659.  
  660. *%%% ======================
  661. *%%% PAGE_SETUP.1
  662. *%%% BeginPage(0x43)
  663. *%%%     Orientation(40), MediaSize(37), MediaSource(38)
  664. *%%%     ubyte            ubyte          ubyte
  665.  
  666. *BlockMacro: PaperConstraints
  667. {
  668.     *Constraints: LIST(InputBin.Option3, InputBin.Option4, InputBin.Option5)
  669. }
  670.  
  671. *Feature: PaperSize
  672. {
  673.     *rcNameID: =PAPER_SIZE_DISPLAY
  674.     *DefaultOption: LETTER
  675.     *Option: LETTER
  676.     {
  677.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  678.         *Constraints: InputBin.Option6
  679.         *PageProtectMem: 4109
  680.         *switch: Orientation
  681.         {
  682.             *case: PORTRAIT
  683.             {
  684.                 *PrintableArea: PAIR(9600, 12600)
  685.                 *PrintableOrigin: PAIR(300, 300)
  686.                 *CursorOrigin: PAIR(300, 160)
  687.                 *Command: CmdSelect
  688.                 {
  689.                     *Order: PAGE_SETUP.1
  690.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  691. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage
  692. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((160*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  693.                 }
  694.             }
  695.             *case: LANDSCAPE_CC90
  696.             {
  697.                 *PrintableArea: PAIR(9760, 12600)
  698.                 *PrintableOrigin: PAIR(200, 300)
  699.                 *CursorOrigin: PAIR(200, 12900)
  700.                 *Command: CmdSelect
  701.                 {
  702.                     *Order: PAGE_SETUP.1
  703.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  704. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize =BeginPage
  705. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  706.                 }
  707.             }
  708.         }
  709.     }
  710.     *Option: LEGAL
  711.     {
  712.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  713.         *Constraints: InputBin.Option6
  714.         *PageProtectMem: 5230
  715.         *switch: Orientation
  716.         {
  717.             *case: PORTRAIT
  718.             {
  719.                 *PrintableArea: PAIR(9600, 16200)
  720.                 *PrintableOrigin: PAIR(300, 300)
  721.                 *CursorOrigin: PAIR(300, 160)
  722.                 *Command: CmdSelect
  723.                 {
  724.                     *Order: PAGE_SETUP.1
  725.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  726. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage
  727. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((160*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  728.                 }
  729.             }
  730.             *case: LANDSCAPE_CC90
  731.             {
  732.                 *PrintableArea: PAIR(9760, 16200)
  733.                 *PrintableOrigin: PAIR(200, 300)
  734.                 *CursorOrigin: PAIR(200, 16500)
  735.                 *Command: CmdSelect
  736.                 {
  737.                     *Order: PAGE_SETUP.1
  738.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  739. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize =BeginPage
  740. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  741.                 }
  742.             }
  743.         }
  744.     }
  745.     *Option: EXECUTIVE
  746.     {
  747.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  748.         *Constraints: InputBin.Option6
  749.         *PageProtectMem: 4109
  750.         *switch: Orientation
  751.         {
  752.             *case: PORTRAIT
  753.             {
  754.                 *PrintableArea: PAIR(8100, 12000)
  755.                 *PrintableOrigin: PAIR(300, 300)
  756.                 *CursorOrigin: PAIR(300, 160)
  757.                 *Command: CmdSelect
  758.                 {
  759.                     *Order: PAGE_SETUP.1
  760.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  761. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage
  762. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((160*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  763.                 }
  764.             }
  765.             *case: LANDSCAPE_CC90
  766.             {
  767.                 *PrintableArea: PAIR(8180, 12000)
  768.                 *PrintableOrigin: PAIR(220, 300)
  769.                 *CursorOrigin: PAIR(200, 12300)
  770.                 *Command: CmdSelect
  771.                 {
  772.                     *Order: PAGE_SETUP.1
  773.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  774. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize =BeginPage
  775. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  776.                 }
  777.             }
  778.         }
  779.     }
  780.  
  781.     *Option: A4
  782.     {
  783.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
  784.         *Constraints: InputBin.Option6
  785.         *PageProtectMem: 4249
  786.         *switch: Orientation
  787.         {
  788.             *case: PORTRAIT
  789.             {
  790.                 *PrintableArea: PAIR(9352, 13400)
  791.                 *PrintableOrigin: PAIR(260, 300)
  792.                 *CursorOrigin: PAIR(260, 160)
  793.                 *Command: CmdSelect
  794.                 {
  795.                     *Order: PAGE_SETUP.1
  796.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  797. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage
  798. +                         =sint16_xy %l{((260*TextXRes)/1200)}%l{((160*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  799.                 }
  800.             }
  801.             *case: LANDSCAPE_CC90
  802.             {
  803.                 *PrintableArea: PAIR(9424, 13428)
  804.                 *PrintableOrigin: PAIR(200, 300)
  805.                 *CursorOrigin: PAIR(200, 13728)
  806.                 *Command: CmdSelect
  807.                 {
  808.                     *Order: PAGE_SETUP.1
  809.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  810. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize =BeginPage
  811. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  812.                 }
  813.             }
  814.         }
  815.     }
  816.  
  817.  
  818.     *Option: B5
  819.     {
  820.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  821.         *PageProtectMem: 3198
  822.         *Constraints: InputBin.Option6
  823.         *switch: Orientation
  824.         {
  825.             *case: PORTRAIT
  826.             {
  827.                 *PrintableArea: PAIR(7964, 11714)
  828.                 *PrintableOrigin: PAIR(340, 152)
  829.                 *CursorOrigin: PAIR(200, 152)
  830.                 *Command: CmdSelect
  831.                 {
  832.                     *Order: PAGE_SETUP.1
  833.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  834. +                         =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage
  835. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((152*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  836.                 }
  837.             }
  838.             *case: LANDSCAPE_CC90
  839.             {
  840.                 *PrintableArea: PAIR(8104, 11624)
  841.                 *PrintableOrigin: PAIR(260, 240)
  842.                 *CursorOrigin: PAIR(200, 11904)
  843.                 *Command: CmdSelect
  844.                 {
  845.                     *Order: PAGE_SETUP.1
  846.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  847. +                         =ubyte =eJB5Paper =attr_ubyte =MediaSize =BeginPage
  848. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((280*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  849.                 }
  850.             }
  851.         }
  852.     }
  853.     *Option: ENV_10
  854.     {
  855.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
  856.         *InsertBlock: =PaperConstraints
  857.         *Constraints: Duplex.VERTICAL
  858.         *Constraints: Duplex.HORIZONTAL
  859.         *PageProtectMem: 4109
  860.         *switch: Orientation
  861.         {
  862.             *case: PORTRAIT
  863.             {
  864.                 *PrintableArea: PAIR(4346, 10800)
  865.                 *PrintableOrigin: PAIR(300, 300)
  866.                 *switch: Resolution
  867.                 {
  868.                     *case: Option1
  869.                     {
  870.                         *PrintableArea: PAIR(4344, 10800)
  871.                     }
  872.                 }
  873.                 *CursorOrigin: PAIR(300, 180)
  874.                 *Command: CmdSelect
  875.                 {
  876.                     *Order: PAGE_SETUP.1
  877.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  878. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  879. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((180*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  880.                 }
  881.             }
  882.             *case: LANDSCAPE_CC90
  883.             {
  884.                 *PrintableArea: PAIR(4476, 10800)
  885.                 *PrintableOrigin: PAIR(200, 300)
  886.                 *CursorOrigin: PAIR(200, 11100)
  887.                 *Command: CmdSelect
  888.                 {
  889.                     *Order: PAGE_SETUP.1
  890.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  891. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize =BeginPage
  892. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  893.                 }
  894.             }
  895.         }
  896.     }
  897.     *Option: ENV_DL
  898.     {
  899.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
  900.         *InsertBlock: =PaperConstraints
  901.         *Constraints: Duplex.VERTICAL
  902.         *Constraints: Duplex.HORIZONTAL
  903.         *PageProtectMem: 4109
  904.         *switch: Orientation
  905.         {
  906.             *case: PORTRAIT
  907.             {
  908.                 *PrintableArea: PAIR(4576, 9792)
  909.                 *PrintableOrigin: PAIR(300, 300)
  910.                 *CursorOrigin: PAIR(300, 180)
  911.                 *Command: CmdSelect
  912.                 {
  913.                     *Order: PAGE_SETUP.1
  914.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  915. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage
  916. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((180*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  917.                 }
  918.             }
  919.             *case: LANDSCAPE_CC90
  920.             {
  921.                 *PrintableArea: PAIR(4796, 9792)
  922.                 *PrintableOrigin: PAIR(200, 300)
  923.                 *CursorOrigin: PAIR(200, 10092)
  924.                 *Command: CmdSelect
  925.                 {
  926.                     *Order: PAGE_SETUP.1
  927.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  928. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize =BeginPage
  929. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  930.                 }
  931.             }
  932.         }
  933.     }
  934.     *Option: ENV_C5
  935.     {
  936.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1027
  937.         *InsertBlock: =PaperConstraints
  938.         *Constraints: Duplex.VERTICAL
  939.         *Constraints: Duplex.HORIZONTAL
  940.         *PageProtectMem: 4109
  941.         *switch: Orientation
  942.         {
  943.             *case: PORTRAIT
  944.             {
  945.                 *PrintableArea: PAIR(7036, 10214)
  946.                 *PrintableOrigin: PAIR(300, 300)
  947.                 *switch: Resolution
  948.                 {
  949.                     *case: Option2
  950.                     {
  951.                         *PrintableArea: PAIR(7036, 10212)
  952.                     }
  953.                 }
  954.                 *CursorOrigin: PAIR(300, 180)
  955.                 *Command: CmdSelect
  956.                 {
  957.                     *Order: PAGE_SETUP.1
  958.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  959. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage
  960. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((180*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  961.                 }
  962.             }
  963.             *case: LANDSCAPE_CC90
  964.             {
  965.                 *PrintableArea: PAIR(7116, 10224)
  966.                 *PrintableOrigin: PAIR(240, 300)
  967.                 *CursorOrigin: PAIR(200, 10524)
  968.                 *Command: CmdSelect
  969.                 {
  970.                     *Order: PAGE_SETUP.1
  971.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  972. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize =BeginPage
  973. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  974.                 }
  975.             }
  976.         }
  977.     }
  978.  
  979.  
  980.  
  981.     *Option: ENV_MONARCH
  982.     {
  983.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
  984.         *InsertBlock: =PaperConstraints
  985.         *Constraints: Duplex.VERTICAL
  986.         *Constraints: Duplex.HORIZONTAL
  987.         *PageProtectMem: 4109
  988.         *switch: Orientation
  989.         {
  990.             *case: PORTRAIT
  991.             {
  992.                 *PrintableArea: PAIR(4046, 8400)
  993.                 *PrintableOrigin: PAIR(300, 300)
  994.                 *switch: Resolution
  995.                 {
  996.                     *case: Option2
  997.                     {
  998.                         *PrintableArea: PAIR(4044, 8400)
  999.                     }
  1000.                 }
  1001.                 *CursorOrigin: PAIR(300, 180)
  1002.                 *Command: CmdSelect
  1003.                 {
  1004.                     *Order: PAGE_SETUP.1
  1005.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  1006. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  1007. +                         =sint16_xy %l{((300*TextXRes)/1200)}%l{((180*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  1008.                 }
  1009.             }
  1010.             *case: LANDSCAPE_CC90
  1011.             {
  1012.                 *PrintableArea: PAIR(4076, 8400)
  1013.                 *PrintableOrigin: PAIR(300, 300)
  1014.                 *CursorOrigin: PAIR(200, 8700)
  1015.                 *Command: CmdSelect
  1016.                 {
  1017.                     *Order: PAGE_SETUP.1
  1018.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  1019. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize =BeginPage
  1020. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((300*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  1021.                 }
  1022.             }
  1023.         }
  1024.     }
  1025.  
  1026.     *Option: CUSTOMSIZE
  1027.     {
  1028.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1255
  1029.         *MinSize: PAIR(3600, 6000)
  1030.         *MaxSize: PAIR(10200, 32767)
  1031.         *MaxPrintableWidth: 10200
  1032.         *MinLeftMargin: 100
  1033.         *CenterPrintable?: FALSE
  1034.         *PageProtectMem: 1692
  1035.         *switch: Orientation
  1036.         {
  1037.             *case: PORTRAIT
  1038.             {
  1039.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 300 }
  1040.                 *CustCursorOriginY:   %d{140 }
  1041.                 *CustPrintableOriginX:  %d{300 }
  1042.                 *CustPrintableOriginY:  %d{300}
  1043.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 600 }
  1044.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 600 }
  1045.                 *Command: CmdSelect
  1046.                 {
  1047.                     *Order: PAGE_SETUP.1
  1048.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  1049. +                         =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  1050. +                         =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits =BeginPage
  1051. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  1052.                 }
  1053.             }
  1054.             *case: LANDSCAPE_CC90
  1055.             {
  1056.                 *CustCursorOriginX:  %d{((PhysPaperWidth - 10200) / 2) + 200 }
  1057.                 *CustCursorOriginY:   %d{16560 }
  1058.                 *CustPrintableOriginX:  %d{200 }
  1059.                 *CustPrintableOriginY:  %d{240}
  1060.                 *CustPrintableSizeX:   %d{ PhysPaperWidth - 400 }
  1061.                 *CustPrintableSizeY:  %d{ PhysPaperLength - 480 }
  1062.                 *Command: CmdSelect
  1063.                 {
  1064.                     *Order: PAGE_SETUP.1
  1065.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  1066. +                         =uint16_xy %l{(PhysPaperWidth / 1200)}%l{(PhysPaperLength / 1200)} =attr_ubyte =CustomMediaSize
  1067. +                         =ubyte =eInch =attr_ubyte =CustomMediaSizeUnits =BeginPage
  1068. +                         =sint16_xy %l{((200*TextXRes)/1200)}%l{((200*TextYRes)/1200)} =attr_ubyte =PageOrigin =SetPageOrigin
  1069.                 }
  1070.             }
  1071.         }
  1072.     }
  1073. }
  1074.  
  1075. *%%% ======================
  1076. *%%% PAGE_SETUP.2
  1077. *%%% BeginPage(0x43)
  1078. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  1079. *%%%     ubyte               ubyte             ubyte
  1080. *%%%     MediaSource
  1081. *Feature: InputBin{ *Option: Option1{} *Option: MANUAL{}}
  1082. *Feature: InputBin
  1083. {
  1084.     *rcNameID: =PAPER_SOURCE_DISPLAY
  1085.     *DefaultOption: Option1
  1086.     *Option: Option1
  1087.     {
  1088.         *rcNameID: =AUTO_SELECT_DISPLAY  *% Automatically Select
  1089.         *Command: CmdSelect
  1090.         {
  1091.             *Order: PAGE_SETUP.2
  1092.             *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  1093.         }
  1094.     }
  1095.  
  1096.     *Option: MANUAL
  1097.     {
  1098.         *rcNameID: =MANUAL_FEED_TRAY1_DISPLAY *% Manual Paper feed
  1099.         *Command: CmdSelect
  1100.         {
  1101.             *Order: PAGE_SETUP.2
  1102.             *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  1103.         }
  1104.     }
  1105.  
  1106. }
  1107.  
  1108.  
  1109. *%%% ======================
  1110. *%%% PAGE_SETUP.3
  1111. *%%% BeginPage(0x43)
  1112. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38), MediaType
  1113. *%%%     ubyte               ubyte             ubyte
  1114. *%%%     MediaType
  1115. *Feature: MediaType
  1116. {
  1117.     *rcNameID: =MEDIA_TYPE_DISPLAY
  1118.     *DefaultOption: AutoSelect
  1119.  
  1120.     *Option: AutoSelect
  1121.     {
  1122.         *rcNameID: =AUTO_SELECT_DISPLAY
  1123.     }
  1124.     *Option: Plain
  1125.     {
  1126.         *rcNameID: =PLAIN_DISPLAY
  1127.         *Command: CmdSelect
  1128.         {
  1129.             *Order: PAGE_SETUP.3
  1130.             *Cmd: =ubyte_array =ePlain =attr_ubyte =MediaType
  1131.         }
  1132.     }
  1133.     *Option: Preprinted
  1134.     {
  1135.         *rcNameID: =PREPRINTED_DISPLAY
  1136.         *Command: CmdSelect
  1137.         {
  1138.             *Order: PAGE_SETUP.3
  1139.             *Cmd: =ubyte_array =ePreprinted =attr_ubyte =MediaType
  1140.         }
  1141.     }
  1142.     *Option: Letterhead
  1143.     {
  1144.         *rcNameID: =LETTERHEAD_DISPLAY
  1145.         *Command: CmdSelect
  1146.         {
  1147.             *Order: PAGE_SETUP.3
  1148.             *Cmd: =ubyte_array =eLetterhead =attr_ubyte =MediaType
  1149.         }
  1150.     }
  1151.     *Option: Transparency
  1152.     {
  1153.         *rcNameID: =TRANSPARENCY_DISPLAY
  1154.     *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1155.         *Command: CmdSelect
  1156.         {
  1157.             *Order: PAGE_SETUP.3
  1158.             *Cmd: =ubyte_array =eTransparency =attr_ubyte =MediaType
  1159.         }
  1160.     }
  1161.     *Option: Prepunched
  1162.     {
  1163.         *rcNameID: =PREPUNCHED_DISPLAY
  1164.         *Command: CmdSelect
  1165.         {
  1166.             *Order: PAGE_SETUP.3
  1167.             *Cmd: =ubyte_array =ePrepunched =attr_ubyte =MediaType
  1168.         }
  1169.     }
  1170.     *Option: Labels
  1171.     {
  1172.         *rcNameID: =LABELS_DISPLAY
  1173.     *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1174.         *Command: CmdSelect
  1175.         {
  1176.             *Order: PAGE_SETUP.3
  1177.             *Cmd: =ubyte_array =eLabels =attr_ubyte =MediaType
  1178.         }
  1179.     }
  1180.     *Option: Bond
  1181.     {
  1182.         *rcNameID: =BOND_DISPLAY
  1183.         *Command: CmdSelect
  1184.         {
  1185.             *Order: PAGE_SETUP.3
  1186.             *Cmd: =ubyte_array =eBond =attr_ubyte =MediaType
  1187.         }
  1188.     }
  1189.     *Option: Recycled
  1190.     {
  1191.         *rcNameID: =RECYCLED_DISPLAY
  1192.         *Command: CmdSelect
  1193.         {
  1194.             *Order: PAGE_SETUP.3
  1195.             *Cmd: =ubyte_array =eRecycled =attr_ubyte =MediaType
  1196.         }
  1197.     }
  1198.     *Option: Color
  1199.     {
  1200.         *rcNameID: =COLOR_DISPLAY
  1201.         *Command: CmdSelect
  1202.         {
  1203.             *Order: PAGE_SETUP.3
  1204.             *Cmd: =ubyte_array =eColor =attr_ubyte =MediaType
  1205.         }
  1206.     }
  1207.     *Option: CardStock
  1208.     {
  1209.         *rcNameID: =CARDSTOCK_DISPLAY
  1210.         *Command: CmdSelect
  1211.         {
  1212.             *Order: PAGE_SETUP.3
  1213.             *Cmd: =ubyte_array =eCardstock =attr_ubyte =MediaType
  1214.         }
  1215.     }
  1216.     *Option: Rough
  1217.     {
  1218.         *rcNameID: =ROUGH_DISPLAY
  1219.         *Command: CmdSelect
  1220.         {
  1221.             *Order: PAGE_SETUP.3
  1222.             *Cmd: =ubyte_array =eRough =attr_ubyte =MediaType
  1223.         }
  1224.     }
  1225. }
  1226.  
  1227. *%%% ======================
  1228. *%%% PAGE_SETUP.3
  1229. *%%% DuplexPageMode(53(0x35))
  1230. *Feature: Duplex
  1231. {
  1232.     *rcNameID: =TWO_SIDED_PRINTING_DISPLAY
  1233.     *DefaultOption: NONE
  1234.     *Option: NONE
  1235.     {
  1236.         *rcNameID: =NONE_DISPLAY
  1237.         *Command: CmdSelect
  1238.         {
  1239.             *Order: JOB_SETUP.4
  1240.             *Cmd: "@PJL SET DUPLEX=OFF<0A>"
  1241.         }
  1242.     }
  1243.     *Option: VERTICAL
  1244.     {
  1245.         *rcNameID: =FLIP_ON_LONG_EDGE_DISPLAY
  1246.         *Command: CmdSelect
  1247.         {
  1248.             *Order: JOB_SETUP.4
  1249.             *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=LONGEDGE<0A>"
  1250.         }
  1251.     }
  1252.     *Option: HORIZONTAL
  1253.     {
  1254.         *rcNameID: =FLIP_ON_SHORT_EDGE_DISPLAY
  1255.         *Command: CmdSelect
  1256.         {
  1257.             *Order: JOB_SETUP.4
  1258.             *Cmd: "@PJL SET DUPLEX=ON<0A>@PJL SET BINDING=SHORTEDGE<0A>"
  1259.         }
  1260.     }
  1261. }
  1262.  
  1263. *%%% ======================
  1264. *%%% PAGE_SETUP.4
  1265. *%%% SetPageOrigin
  1266. *%%%     PageOrigin
  1267. *%%% SetPageScale
  1268. *Command: CmdStartPage
  1269. {
  1270.     *Order: PAGE_SETUP.4
  1271.     *Cmd: =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  1272. +         =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  1273. }
  1274.  
  1275. *%%% ======================
  1276. *%%% PAGE_SETUP.5
  1277. *%%% Feature
  1278. *%%% Dither
  1279. *Feature: Dither
  1280. {
  1281.     *rcNameID: =DITHER_QUALITY_DISPLAY
  1282.     *DefaultOption: HIQUALITY
  1283.     *Option: HIQUALITY
  1284.     {
  1285.         *rcNameID: =DITHER_QUALITY_HIGH_DISPLAY
  1286.         *Command: CmdSelect
  1287.         {
  1288.             *Order: PAGE_SETUP.5
  1289.             *Cmd: ""
  1290.         }
  1291.     }
  1292.     *Option: LOQUALITY
  1293.     {
  1294.         *rcNameID: =DITHER_QUALITY_LOW_DISPLAY
  1295.         *Command: CmdSelect
  1296.         {
  1297.             *Order: PAGE_SETUP.5
  1298.             *Cmd: ""
  1299.         }
  1300.     }
  1301. }
  1302.  
  1303.  
  1304. *%%% ======================
  1305. *%%% Feature
  1306. *%%% Memory
  1307. *Feature: Memory
  1308. {
  1309.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  1310.     *DefaultOption: 4MB
  1311. *% 4MB Standard memory, 3 memory slots with 4, 8, 16 or 32 MB dimms avail.
  1312. *% Max memory 96 (+4 on board) = 100
  1313.         *MemConfigMB: PAIR(4, 3)
  1314.         *MemConfigMB: PAIR(8, 7)
  1315.         *MemConfigMB: PAIR(12, 10)
  1316.         *MemConfigMB: PAIR(16, 13)
  1317.         *MemConfigMB: PAIR(20, 17)
  1318.         *MemConfigMB: PAIR(24, 21)
  1319.         *MemConfigMB: PAIR(28, 24)
  1320.         *MemConfigMB: PAIR(32, 28)
  1321.         *MemConfigMB: PAIR(36, 31)
  1322. }
  1323.  
  1324. *%%% ======================
  1325. *%%% Device fonts
  1326. *%%% ======================
  1327.  
  1328. *DefaultFont: =RC_FONT_COURIERR
  1329. *DefaultCTT: 0
  1330.  
  1331. *DeviceFonts: LIST(
  1332. +    =RC_FONT_ALBERTX,
  1333. +    =RC_FONT_AOLIVEB,
  1334. +    =RC_FONT_AOLIVER,
  1335. +    =RC_FONT_ARIALB,
  1336. +    =RC_FONT_ARIALI,
  1337. +    =RC_FONT_ARIALJ,
  1338. +    =RC_FONT_ARIALR,
  1339. +    =RC_FONT_COURIERB,
  1340. +    =RC_FONT_COURIERI,
  1341. +    =RC_FONT_COURIERJ,
  1342. +    =RC_FONT_COURIERR,
  1343. +    =RC_FONT_LETGOTHB,
  1344. +    =RC_FONT_LETGOTHI,
  1345. +    =RC_FONT_LETGOTHR,
  1346. +    =RC_FONT_MARGOLDR,
  1347. +    =RC_FONT_TIMESNRB,
  1348. +    =RC_FONT_TIMESNRI,
  1349. +    =RC_FONT_TIMESNRJ,
  1350. +    =RC_FONT_TIMESNRR,
  1351. +    =RC_FONT_WINGDINGS,
  1352. +    =RC_FONT_SYMBOL)
  1353.  
  1354. *TTFS: AlbertusX
  1355. {
  1356.   *TTFontName: "Albertus Extra Bold"
  1357.   *DevFontName: "Albertus Extra Bold"
  1358. }
  1359. *TTFS: AntiqueOlive
  1360. {
  1361.   *TTFontName: "Antique Olive"
  1362.   *DevFontName: "Antique Olive"
  1363. }
  1364. *TTFS: LetterGothic
  1365. {
  1366.   *TTFontName: "Letter Gothic"
  1367.   *DevFontName: "Letter Gothic"
  1368. }
  1369. *TTFS: Marigold
  1370. {
  1371.   *TTFontName: "Marigold"
  1372.   *DevFontName: "Marigold"
  1373. }
  1374.  
  1375.  
  1376. *%% =======================
  1377. *%% Optional Duplex Unit
  1378. *%% =======================
  1379. *Feature: DuplexUnit
  1380. {
  1381.     *FeatureType: PRINTER_PROPERTY
  1382.     *rcNameID: =DUPLEX_UNIT_DISPLAY
  1383.     *DefaultOption: NotInstalled
  1384.     *Option: NotInstalled
  1385.     {
  1386.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1387.         *DisabledFeatures: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1388.         *Constraints: LIST(Duplex.VERTICAL,Duplex.HORIZONTAL)
  1389.     }
  1390.  
  1391.     *Option: Installed
  1392.     {
  1393.         *rcNameID: =INSTALLED_DISPLAY
  1394.     }
  1395. }
  1396.  
  1397.  
  1398. *%% =======================
  1399. *%% Optional Hard Disk
  1400. *%% =======================
  1401. *Feature: PrinterHardDisk
  1402. {
  1403.     *rcNameID: =PRINTER_HARDDISK_DISPLAY
  1404.     *FeatureType: PRINTER_PROPERTY
  1405.     *DefaultOption: FALSE
  1406.     *Option: FALSE
  1407.     {
  1408.         *rcNameID: =NOT_INSTALLED_DISPLAY
  1409.         *DisabledFeatures: LIST(Collate)
  1410.     }
  1411.     *Option: TRUE
  1412.     {
  1413.         *rcNameID: =INSTALLED_DISPLAY
  1414.     }
  1415. }
  1416.  
  1417.  
  1418. *%%% ======================
  1419. *%%% PCL XL GPD file main
  1420. *%%% ======================
  1421.  
  1422. *%%% ======================
  1423. *%%% Global Entries
  1424. *%%% Attributes
  1425. *%%% ======================
  1426. *MasterUnits: PAIR(1200, 1200)
  1427. *CodePage: 1252
  1428. *ResourceDLL: "pclxl.dll"
  1429. *PrinterType: PAGE
  1430. *Personality: =PERSONALITY_PCLXL
  1431. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  1432. *%%% *rcPrinterIconID:
  1433.  
  1434. *%%% ======================
  1435. *%%% Printing attributes
  1436. *%%% ======================
  1437. *RotateCoordinate?: TRUE
  1438. *RotateRaster?: TRUE
  1439. *RotateFont?: TRUE
  1440. *EjectPageWithFF?: FALSE
  1441.  
  1442. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  1443. *MemoryUsage: LIST(FONT)
  1444. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1445. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1446. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1447. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1448. *XMoveThreshold: 0
  1449. *YMoveThreshold: 0
  1450. *XMoveUnit: 1200
  1451. *YMoveUnit: 1200
  1452.  
  1453. *%%% *MinGrayFill: 1
  1454. *%%% *MaxGrayFill: 100
  1455.  
  1456. *%%% *OutputDataFormat: H_BYTE
  1457. *%%% *OptimizeLeftBound?: TRUE
  1458.  
  1459. *%%% ======================
  1460. *%%% Color
  1461. *%%% ======================
  1462. *Feature: ColorMode
  1463. {
  1464.     *ConcealFromUI?: TRUE
  1465.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  1466.     *DefaultOption: Mono
  1467.     *Option: Mono
  1468.     {
  1469.         *rcNameID: =COLOR_DISPLAY
  1470.         *Color?: FALSE
  1471.         *DevNumOfPlanes: 1
  1472.         *DevBPP: 24
  1473.         *DrvBPP: 24
  1474.         *PaletteSize: 256
  1475.         *PaletteProgrammable?: FALSE
  1476.     }
  1477. }
  1478.  
  1479. *%%% ======================
  1480. *%%% TrueType fonts
  1481. *%%% ======================
  1482.  
  1483. *CharPosition: BASELINE
  1484. *TTFSEnabled?: TRUE
  1485. *FontFormat: OEM_CALLBACK
  1486. *MinFontID: 1
  1487. *MaxFontID: 65535
  1488. *MinGlyphID: 1
  1489. *MaxGlyphID: 1000
  1490.  
  1491. *%%% ======================
  1492. *%%% Cursor commands
  1493. *%%% ======================
  1494.  
  1495. *Command: CmdCR { *Cmd: =CR}
  1496. *Command: CmdLF { *Cmd: =LF}
  1497. *Command: CmdFF { *Cmd: =FF}
  1498.  
  1499. *%%% SetCursor(0x6b)
  1500. *%%%     Point(76(0x40c)) uint_16
  1501. *%%% SetCursorRel(0x6c)
  1502. *%%%     Point(76(0x40c)) uint_16
  1503. *Command: CmdXMoveAbsolute
  1504. {
  1505.     *Cmd: ""
  1506. }
  1507. *Command: CmdXMoveRelRight
  1508. {
  1509.     *Cmd: ""
  1510.     *Params: LIST(DestXRel, TextXRes)
  1511. }
  1512. *Command: CmdXMoveRelLeft
  1513. {
  1514.     *Cmd: ""
  1515.     *Params: LIST(DestXRel, TextXRes)
  1516. }
  1517. *Command: CmdYMoveAbsolute
  1518. {
  1519.     *Cmd: ""
  1520.     *Params: LIST(DestY, TextYRes)
  1521. }
  1522. *Command: CmdYMoveRelDown
  1523. {
  1524.     *Cmd: ""
  1525.     *Params: LIST(DestYRel, TextYRes)
  1526. }
  1527. *Command: CmdYMoveRelUp
  1528. {
  1529.     *Cmd: ""
  1530.     *Params: LIST(DestYRel, TextYRes)
  1531. }
  1532. *%%% *Command: CmdPushCursor
  1533. *%%% *Command: CmdPopCursor
  1534.  
  1535. *%%% =======================
  1536. *%%% Font commands
  1537. *%%% =======================
  1538.  
  1539. *Command: CmdSetFontID { *Cmd : "" }
  1540. *Command: CmdSelectFontID
  1541. {
  1542.     *Cmd: ""
  1543.     *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1544. }
  1545.  
  1546. *Command: CmdSetCharCode
  1547. {
  1548.     *Cmd : ""
  1549. }
  1550.  
  1551. *Command: CmdBoldOn
  1552. {
  1553.     *Cmd : ""
  1554. }
  1555. *Command: CmdBoldOff
  1556. {
  1557.     *Cmd : ""
  1558. }
  1559. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  1560. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  1561. *%%% *Command: CmdWhiteTextOn:
  1562. *%%% *Command: CmdWhiteTextOff:
  1563. *%%% *Command: CmdSelectSingleByteMode:
  1564. *%%% *Command: CmdSelectDoubleByteMode:
  1565. *Command: CmdSetAnyRotation
  1566. {
  1567.     *Cmd: ""
  1568.     *Params: LIST(PrintDirInCCDegrees)
  1569. }
  1570. *Command: CmdSetSimpleRotation
  1571. {
  1572.     *Cmd: ""
  1573.     *Params: LIST(PrintDirInCCDegrees)
  1574. }
  1575.